package o;

import android.text.TextUtils;
import com.huawei.appgallery.jsonkit.api.annotation.FieldSecurity;
import com.huawei.appgallery.jsonkit.api.annotation.SecurityLevel;
import o.der.f;
import org.json.JSONArray;

public class efv extends eyj {
    public static final String APIMETHOD = "client.gs.auth.app.get";
    private static final String GAME_SERVICE_SCOPE_ID_ONLINE = "265";
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private String accessToken_;
    private String scopes_;

    public static efv ˊ(String str) {
        efv o_efv = new efv();
        o_efv.setMethod_(APIMETHOD);
        o_efv.targetServer = "jxs.url";
        o_efv.setStoreApi("gbClientApi");
        o_efv.ॱ(str);
        o_efv.ˋ();
        return o_efv;
    }

    public void ॱ(String str) {
        this.accessToken_ = str;
    }

    public void ˋ() {
        Object ॱ = ego.ॱ().ॱ(ContentManager.getInstant().getContext().getString(f.ॱﹳ));
        if (TextUtils.isEmpty(ॱ)) {
            ॱ = GAME_SERVICE_SCOPE_ID_ONLINE;
        }
        JSONArray jSONArray = new JSONArray();
        jSONArray.put(ॱ);
        this.scopes_ = jSONArray.toString();
    }
}
